<?php get_instance()->view('common/header');?>
<body class="bag3">
<div class="swiper-container shopbanner">
    <div class="swiper-wrapper">
        <?php foreach ($tA['img'] as $ik => $iv):?>
        <div class="swiper-slide"><img src="<?php echo $iv?>" alt=""></div>
        <?php endforeach;?>
    </div>
    <div class="swiper-pagination"></div>
</div>
<div class="commodinfo bag1">
    <div class="wp94 m0a">
        <?php if ($tA['status'] == 1):?>
            <h1 class="commodtitle" style="color: #999;"><?php echo $tA['name'].'（已下架）'?></h1>
        <?php else:?>
            <h1 class="commodtitle"><?php echo $tA['name']?></h1>
        <?php endif;?>
        <div><?php echo isset($tA['subtitle']) ? $tA['subtitle'] : ''?></div>
        <div class="vCenter hengleft">
            <span class="fb f11 mr10 hongzi">￥<?php echo $tA['goods_price']?></span>
           <!-- <span class="shibgwp">配送费:<?php echo $tA['shipping_fee']?></span>-->
            <span class="shibgwp">销量:<?php echo $tA['sale_quantity']?>笔</span>
        </div>
    </div>
<!--    <div class="weui-cells">-->
<!--        <a class="weui-cell weui-cell_access p3p" href="javascript:;">-->
<!--            <div class="weui-cell__bd">-->
<!--                <p>规格数量选择</p>-->
<!--            </div>-->
<!--            <div class="weui-cell__ft"></div>-->
<!--        </a>-->
<!--    </div>-->
</div>
<div class="shopshow mb7">
    <div class="shopshowcons">
        <div class="swiper-slide-item pb30" >
            <div class="waper mb7 bag1">
                <div class="menutitle f12 pt10"><img src="<?php echo $this->staticUrl?>img/png/pic23.png" alt="">商品详情</div>
                <?php if (!empty($detail)):?>
                    <div class="consmodel pb10">
                        <?php foreach ($detail as $dk => $dv):?>
                            <?php if ($dv['type'] == 1):?>
                                <p><?php echo $dv['content']?></p>
                            <?php else:?>
                                <img src="<?php echo $dv['content']?>" alt="">
                            <?php endif;?>
                        <?php endforeach;?>
                    </div>
                <?php endif;?>
            </div>
            <div class="waper bag1">
                <div class="menutitle f12 pt10"><img src="<?php echo $this->staticUrl?>img/png/pic22.png" alt="">评价</div>
                <p class="f11 cor6" style="font-size: 1.05em;">商品评价（<?php echo $comment['total_comment']?>）</p>
            </div>
            <div class="waper m0a hengline vCenter bqwp3box bag1">
                <?php foreach ($comment['desc'] as $ck => $cv):?>
                    <b class="bqwp3"><?php echo $cv['tags'].'('.$cv['count'].')'?></b>
                <?php endforeach;?>
            </div>
            <div class="userhuifu bag1 shopxqhuifu">
                <?php foreach ($comment['list'] as $clk => $clv):?>
                    <div class="hengleft">
                    <div class="minuserimg imgbox"><img src="<?php echo $clv['headurl']?>" alt=""></div>
                    <div class="">
                        <h1><?php echo $clv['name']?></h1>
                        <p class="f07 pjdatatime"><?php echo $clv['addtime']?></p>
                    </div>
                </div>
                    <div class="huifu">
                        <p class="m5_0 f09"><?php echo $clv['content']?></p>
                        <?php if (!empty($clv['imgs'])):?>
                            <div class="huifuimgbox imgboxpull">
                                <?php foreach ($clv['imgs'] as $k => $v):?>
                                    <div class=" imgbox"><img src="<?php echo $v?>" alt=""></div>
                                <?php endforeach;?>
                            </div>
                            <?php endif; if(isset($clv['desc'])):?>
                                <p class="textEll  cor9">
                                    <span class="f08 mr15"><?php echo $clv['desc']?></span>
                                </p>
                        <?php endif;?>
                    </div>
                    <div class="xing heng vCenter">
                        <?php for ($i = 0; $i < $clv['score']; $i++):?>
                            <img src="<?php echo $this->staticUrl?>img/png/pic11.png" alt="">
                        <?php endfor; $sc = 5 - $clv['score']; for ($j = 0; $j < $sc; $j++):?>
                            <img src="<?php echo $this->staticUrl?>img/png/pic12.png" alt="">
                        <?php endfor;?>
                    </div>
                <?php endforeach;?>
                <a href="<?php echo getUrl('product/comment?merchant_id='.$tA['merchant_id'].'&product_id='.$tA['id'])?>"
                   class="secletAllbtn mt5">查看全部评价</a>
            </div>
        </div>
    </div>
</div>
<!--购物车-->
<?php if ($tA['status'] == 2):?>
    <?php get_instance()->view('product/shopCar.php');?>
    <?php get_instance()->view('product/guiGe.php');?>
<?php endif;?>
</body>
<script src="<?php echo $this->staticUrl?>js/base.js"></script>
<script>
    $(function () {
        sessionStorage.setItem("need-refresh", true);
    });
</script>
</html>